import 'dart:convert';

ClassProficiencyResult classProficiencyResultFromJson(String str) =>
    ClassProficiencyResult.fromJson(json.decode(str));

String classProficiencyResultToJson(ClassProficiencyResult data) =>
    json.encode(data.toJson());

class ClassProficiencyResult {
  ClassProficiencyResult({
    this.status,
    this.message,
    this.result,
  });

  int? status;
  String? message;
  Result? result;

  factory ClassProficiencyResult.fromJson(Map<String, dynamic> json) =>
      ClassProficiencyResult(
        status: json["status"],
        message: json["message"],
        result: Result.fromJson(json["result"]),
      );

  Map<String, dynamic> toJson() => {
        "status": status,
        "message": message,
        "result": result?.toJson(),
      };
}

class Result {
  Result({
    this.level,
  });

  Map<String, int>? level;

  factory Result.fromJson(Map<String, dynamic> json) => Result(
        level:
            Map.from(json["level"]).map((k, v) => MapEntry<String, int>(k, v)),
      );

  Map<String, dynamic> toJson() => {"level": null};
}
